const env = require('./env')
const UPLOAD_PATH = env === 'dev' ? 'D:/nginxtest' : 'D:/nginxtest';   //本地      线上http://book.youbaobao.xyz:8089/book
const UPLOAD_URL = env === 'dev' ? 'http://book.youbaobao.xyz:8089' :'http://book.youbaobao.xyz:8089'
const OLD_UPLOAD_URL = env === 'dev' ? 'http://book.youbaobao.xyz:8089/source/book/res/img' :'http://book.youbaobao.xyz:8089/source/book/res/img'


module.exports = {
    CODE_ERROR: -1,
    CODE_SUCCESS: 0,
    CODE_TOKEN_EXPIRED: -2,
    debug: true,
    PWD_SALT: 'admin_imooc_node',
    PRIVATE_KEY: 'chan',
    JWT_EXPIRED: 60 * 60,
    UPLOAD_PATH,
    MIME_TYPE_EPUB:'application/epub+zip',
    UPLOAD_URL,
    OLD_UPLOAD_URL
}

